package com.club.football.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

import static com.club.football.common.CommonConstants.NO_CHOOSE_MSG;
import static com.club.football.common.CommonConstants.NULL_MSG;

/**
 * 教练将数据保存到
 *
 * @author 1
 * @date 2024/01/23
 */
@Data
public class CoachSaveDto implements Serializable {

    /**
     * 教练ID
     */
    private Long coachId;
    /**
     * 名字
     */
    @NotBlank(message = NULL_MSG + "姓名")
    @Length(max = 100, min = 1, message = "教练姓名不能少于{min}或超过{max}个字符")
    private String name;

    /**
     * 球队ID
     */
    @NotNull(message = NO_CHOOSE_MSG + "球队")
    private Long teamId;
    /**
     * 生日
     */
    private String birthday;
    /**
     * 是否主教练
     */
    @NotNull(message = NO_CHOOSE_MSG + "是否主教练")
    private Boolean isHeadCoach;
    /**
     * 状态
     */
    @NotBlank(message = NO_CHOOSE_MSG + "状态")
    private String status;
}
